<?php
$maxpag=14;
if (!isset($pag)) {
     $pag=1;
}
if (!isset($orden)) {
     $orden="tarjeta";
}
echo "<center>Orden por&nbsp;&nbsp;&nbsp;";
echo "<a href=\"index.php?psa_modulo=$psa_modulo&orden=tarjeta\">Tarjeta</a>&nbsp;&nbsp;&nbsp;";
echo "<a href=\"index.php?psa_modulo=$psa_modulo&orden=nombre\">Nombre</a>&nbsp;&nbsp;&nbsp;";
echo "<a href=\"index.php?psa_modulo=$psa_modulo&orden=depto\">Depto</a>&nbsp;&nbsp;&nbsp;";
echo "<a href=\"index.php?psa_modulo=$psa_modulo&orden=turno\">Turno</a></center><br>";
$desde = (($pag-1)*$maxpag);
$grid1 = new psa_form_grid;
$grid1->tabla    = "accesos order by $orden ";
$grid1->desde    = $desde;
$grid1->inicamp    = 1;
$grid1->cantidad = $maxpag;
$grid1->procesa  = "index.php?psa_modulo=mod/accesos/proceso.php&modulo=$psa_modulo&pag=$pag&orden=$orden";
$grid1->linkbar  = "index.php?psa_modulo=$psa_modulo&orden=$orden";
$grid1->pagbar   = $pag;
$grid1->gridtipo = B_ACT_EL;
$grid1->nuevo    = 1;
$grid1->gen();
?>